var ioc = {
    config: {
        type: "cn.cytong.util.ProfilePropertiesProxy",
        fields: {
            paths: ["config.properties"]
        }
    },

    dao: {
        type: "org.nutz.dao.impl.NutDao",
        args: [
            {jndi: "jndi/suiz"}
        ]
    },

    //dataSource: {
    //    type: "com.alibaba.druid.pool.DruidDataSource",
    //    events: {
    //        depose: 'close'
    //    },
    //    fields: {
    //        driverClassName: "com.microsoft.sqlserver.jdbc.SQLServerDriver",
    //        url: "jdbc:sqlserver://192.168.0.253:1433; DatabaseName=wp",
    //        //url: "jdbc:sqlserver://111.4.115.174:1433; DatabaseName=wp",
    //        username: "sa",
    //        password: "87875626",
    //        filters: 'stat',
    //        removeAbandoned: true
    //    }
    //},

    nutDao: {
        type: "cn.cytong.nk0713.utils.nutz.CustomisedNutDao",
        args: [
            {refer: 'dao'}
        ]
    },

    serviceFactory: {
        type: 'cn.cytong.rpc.server.NutzRpcServiceFactory',
        fields: {ioc: {refer: '$Ioc'}}
    },

    rpcServer: {
        type: 'cn.cytong.rpc.server.RpcServer',
        args: [
            {refer: 'serviceFactory'}
        ],
        fields: {
            host: {java: "$config.get('rpc.host')"},
            username: {java: "$config.get('rpc.username')"},
            password: {java: "$config.get('rpc.password')"},
            routingKey: {java: "$config.get('rpc.routingKey')"}
        }
    },

    CardService_service: {
        type: 'cn.cytong.nk0713.services.CardService',
        fields: {
            nutDao: {refer: 'nutDao'},
            dao: {refer: 'dao'}
        }
    },

    CustomerService_service: {
        type: 'cn.cytong.nk0713.services.CustomerService',
        fields: {
            nutDao: {refer: 'nutDao'},
            dao: {refer: 'dao'}
        }
    },

    OperatorLog_service: {
        type: 'cn.cytong.nk0713.services.OperatorLog',
        fields: {
            nutDao: {refer: 'nutDao'},
            dao: {refer: 'dao'}
        }
    },

    OperatorService_service: {
        type: 'cn.cytong.nk0713.services.OperatorService',
        fields: {
            nutDao: {refer: 'nutDao'},
            dao: {refer: 'dao'}
        }
    },

    ProductService_service: {
        type: 'cn.cytong.nk0713.services.ProductService',
        fields: {
            nutDao: {refer: 'nutDao'},
            dao: {refer: 'dao'}
        }
    },

    TerminalService_service: {
        type: 'cn.cytong.nk0713.services.TerminalService',
        fields: {
            nutDao: {refer: 'nutDao'},
            dao: {refer: 'dao'}
        }
    },

    VisitRecordService_service: {
        type: 'cn.cytong.nk0713.services.VisitRecordService',
        fields: {
            nutDao: {refer: 'nutDao'},
            dao: {refer: 'dao'}
        }
    }
};